Learning Web Component Development

Learning Web Component Development

Author:Patel, Sandeep Kumar
Language: eng
Format: epub
Publisher: Packt Publishing - ebooks Account
Published: 2015-05-27T16:00:00+00:00


Defining element attributes

Custom attributes can be defined using the attribute property of <polymer-element>. This can take multiple attribute names separated by a space. A property defined inside the attribute property is published by default .The syntax of the attribute declaration is as follows:

<polymer-element name="tag-name" attributes="property1 property2..."> </polymer-element>

Defining default attributes

We can define default attributes to a custom element. The default attributes directly get attached with the custom element while rendering. The syntax for defining a default attribute is as follows:

<polymer-element name="tag-name" myDefaultProperty1> </polymer-element>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.